#include "hardware_variable.h"

hardware_variable::hardware_variable()
{
    for(int i=0;i<2;i++)
    {
        sHapticRunData[i]=SRobotHapticDeviceDataV2();
    }
}


hardware_variable::~hardware_variable()
{

}

//这样写就所有类的实例都是指向唯一对象了
hardware_variable *hardware_variable::instance(void)
{
    static hardware_variable obj;
    return &obj;
}


